package com.gxuwz.eschool.fragment;

import android.content.Intent;
import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.gxuwz.eschool.LoginForQQActivity;
import com.gxuwz.eschool.MessageForSystem;
import com.gxuwz.eschool.R;

//消息
public class MessageFragment extends Fragment {
    private RelativeLayout rlInformationRecharge;
    public MessageFragment() {
        // Required empty public constructor
    }
    public static MessageFragment newInstance(String param1, String param2) {
        MessageFragment fragment = new MessageFragment();
        Bundle args = new Bundle();

        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);



    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//        return inflater.inflate(R.layout.fragment_message, container, false);

        View rootView = inflater.inflate(R.layout.fragment_message, container, false);

        // 初始化RelativeLayout并设置点击监听器
        rlInformationRecharge = rootView.findViewById(R.id.ll_information_recharge);
        rlInformationRecharge.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), MessageForSystem.class);
                startActivity(intent);
            }
        });

        return rootView;

    }








}